﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using DevExpress.XtraEditors;
using Lola.Vista.Comunes;
using Lola.Vista.LimpiezaSuministroTaller;

namespace Lola.Vista
{
    public partial class sfrmPrincipal : DevExpress.XtraEditors.XtraForm
    {
        String _Galpon;
        String _Usuario;

        public sfrmPrincipal(String galpon, String usuario)
        {
            this._Galpon = galpon;
            this._Usuario = usuario;
            InitializeComponent();
            this.lblGalpon.Text = this._Galpon;
            this.tooltipUsuario.Text = this._Usuario;
        }

        private void sbtnPorteria_Click(object sender, EventArgs e)
        {
            xfrmMicrosenGalpon frm = new xfrmMicrosenGalpon(this._Galpon, "Porteria");
            frm.ShowDialog();
        }

        private void sbtnLimpieza_Click(object sender, EventArgs e)
        {
            xfrmMicrosenSector frm = new xfrmMicrosenSector("Limpieza", this._Galpon, this._Usuario);
            frm.ShowDialog();
        }

        private void sbtnParametros_Click(object sender, EventArgs e)
        {
            Lola.Vista._00_Comunes.xfrmParametros frm = new _00_Comunes.xfrmParametros();
            frm.ShowDialog();
        }

        private void sbtnTaller_Click(object sender, EventArgs e)
        {
            xfrmMicrosenSector frm = new xfrmMicrosenSector("Taller", this._Galpon, this._Usuario);
            frm.ShowDialog();
        }

        private void sbtnSuministros_Click(object sender, EventArgs e)
        {
            xfrmMicrosenSector frm = new xfrmMicrosenSector("Suministros", this._Galpon, this._Usuario);
            frm.ShowDialog();
        }

        private void sbtnTrafico_Click(object sender, EventArgs e)
        {
            // xfrmMicrosenGalpon frm = new xfrmMicrosenGalpon(this._Galpon, "Trafico");
            Lola.Vista._03_Trafico.xfrmTrafico frm = new _03_Trafico.xfrmTrafico(this._Galpon, "Trafico");
            frm.ShowDialog();
        }

    }
}